/**
 *	(C) 2014 Yuanjj
 *
 * 	define global object
 *
 *	histroy
 * 		2014-08-04	Yuanjj		-	create
 */

#include "global.h"

DEFINE_GLOBAL_OBJECT()

/**
 *	routine start
 *
 *	@argc			[in] the command line arguments count
 *	@argv			[in] the command line arguments array
 *
 *	return
 * 		==	0		successful
 * 		!=	0		errorcode
 */
pem_error_t routine_start( pem_s32_t argc, pem_s8_t* argv[] )
{
    pem_error_t		res;

    OBJS_INSTANCE( res, EXIT )

EXIT:
    if ( 0 != res )
        g_log.write( LOG_ERR, "routine start", "routine start failed[error = 0x%x]", res );
    else
        g_log.write( LOG_INFO, "routine start", "routine start successfully!" );

    return res;
}

/**
 *	routine stop
 */
pem_void_t routine_stop( )
{
    OBJS_RELEASE()

    g_log.write( LOG_INFO, "routine stop", "routine has been stop!" );
}
